<?php /* Smarty version Smarty-3.0.8, created on 2011-11-09 22:47:58
         compiled from "D:/Inne/Dropbox/Projekty/NowyCMS/Szablon/Admin/Zarzadzanie/StronaEdycja.tpl" */ ?>
<?php /*%%SmartyHeaderCode:252924ebaf50e08dc98-27965074%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '584c95df34bd37b909a75f2342d4c2251bcd3d46' => 
    array (
      0 => 'D:/Inne/Dropbox/Projekty/NowyCMS/Szablon/Admin/Zarzadzanie/StronaEdycja.tpl',
      1 => 1317061473,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '252924ebaf50e08dc98-27965074',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<script type="text/javascript" src="http://<?php echo $_smarty_tpl->getVariable('domena')->value;?>
/P/dhtmlxToolbar/codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="http://<?php echo $_smarty_tpl->getVariable('domena')->value;?>
/P/dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script>
<link rel="stylesheet" type="text/css" href="http://<?php echo $_smarty_tpl->getVariable('domena')->value;?>
/P/dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_web.css" />
<div id="toolbarDiv"></div>
<div class="zawartosc">
    <?php if ($_smarty_tpl->getVariable('bledy')->value){?>
    <div id="bledy">
        <ul>
            <?php  $_smarty_tpl->tpl_vars['blad'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('bledy')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['blad']->key => $_smarty_tpl->tpl_vars['blad']->value){
?>
            <li><?php echo $_smarty_tpl->tpl_vars['blad']->value;?>
</li>
            <?php }} ?>
        </ul>
    </div>
    <?php }?>
    <?php echo $_smarty_tpl->getVariable('form')->value['poczatek'];?>

    <div id="div1"><?php echo $_smarty_tpl->getVariable('form')->value['strona'];?>
</div>
    <div id="div2" style="display: none"><?php echo $_smarty_tpl->getVariable('form')->value['rozmieszczenieModulow'];?>
</div>
    <?php echo $_smarty_tpl->getVariable('form')->value['koniec'];?>

</div>


<script type="text/javascript" >
    /* Menu */
    var toolbar = new dhtmlXToolbarObject('toolbarDiv','dhx_web');
    toolbar.setIconsPath('http://{$strona.domena}/P/icons/');
    toolbar.addButton(1, 1, 'Strona');
    toolbar.addButton(2, 2, 'Załączone moduły');
    toolbar.attachEvent('onClick', function(id){
        switch(id)
        {
            case '1':
                $('#div1').show('normal');
                $('#div2').hide('normal');
                break;
            case '2':
                $('#div1').hide('normal');
                $('#div2').show('normal');
                break;
            default:
                alert('Wybrałeś nieobsługiwaną opcję!');
        }
    });
    /* Dodawanie modułu */
    function dodajModul(id) {
        $('#moduly'+id).append('<div class="form_row"><label>Nazwa modułu:</label>'+
            $('#wybierzModul :selected').text()+'&nbsp;'+
            '<input type="hidden" name="moduly['+ id +'][]"'+
            'value="'+$('#wybierzModul :selected').text()+'" />'+
            '<input type="button" value="Usuń" name="modul_del" '+
            'onClick="$(this).parent().slideUp(\'slow\', function() '+
            '{ $(this).remove() } );return false;" /></div>');
    }
</script>
